
package com.nanyang.tms.api.dto.request.pick;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * <p>Description:服务商查询参数类</p>
 * 
 * @author lvxuepeng
 * @date 2020年11月11日 上午9:57:43
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Data
public class PickGoodsDriverRequest extends ApiRequest {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	@JsonIgnore
	private String pin;
	/**
	 * 提货编码
	 */
	@NotEmpty(message = "提货编码不能为空")
	@Length(max = 32, message = "pickCode长度需小于32个字符")
	private String pickCode;
	/**
	 * 司机公司
	 */
	@Length(max = 50, message = "driverCompanyName长度需小于50个字符")
	private String driverCompanyName;

	/**
	 * 司机姓名
	 */
	@NotEmpty(message = "司机姓名不能为空")
	@Length(max = 10, message = "driverName长度需小于10个字符")
	private String driverName;

	/**
	 * 司机联系方式
	 */
	@NotEmpty(message = "司机联系方式不能为空")
	@Pattern(regexp = "1[3|4|5|6|7|8|9][0-9]{9}$", message = "手机号格式不正确")
	private String driverTel;
	/**
	 * 车牌号
	 */
	@Length(max = 20, message = "carNo长度需小于20个字符")
	private String carNo;
	@Override
	public void requestCheck() {
	}
}
